package chuangyi.com.org.ViewModel;

import android.app.Activity;
import android.content.Context;
import android.databinding.Bindable;
import android.view.View;

import chuangyi.com.org.DOMIHome.HomeActivity;
import chuangyi.com.org.DOMIHome.R;
import chuangyi.com.org.DOMIHome.adapter.BindingListItem;

/**
 * Created by zxh on 16/12/1.
 */

public class ExpertItem extends BindingListItem {
    //        {
//            "uid": "1",
//                "avatar": "/external/images/media/21742",
//                "nickname": "null",
//                "job": "董事长",
//                "introduction": "届时嫁鸡随鸡爱谁就爱就死啊计算机阿娇死啊",
//                "consultmoney": "100",
//                "judgerank": "2"
//        }
    private int uid;
    private String avatar;
    private String nickname;
    private String job;
    private String introduction;
    private double consultmoney;
    private int judgerank;
    private String label;

    @Bindable
    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    @Bindable
    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    @Bindable
    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    @Bindable
    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    @Bindable
    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    @Bindable
    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    @Bindable
    public double getConsultmoney() {
        return consultmoney;
    }

    public void setConsultmoney(double consultmoney) {
        this.consultmoney = consultmoney;
    }

    @Bindable
    public int getJudgerank() {
        return judgerank;
    }

    public void setJudgerank(int judgerank) {
        this.judgerank = judgerank;
    }

    public ExpertItem(Context context){
        super(context, R.layout.i_advice);
    }

    public void onClickItem(View view){
        HomeActivity.showPersonalCentral((Activity)getContext(), uid, true);
    }
}
